package com.etymgiko.spaceshipshop.dao;

import com.etymgiko.spaceshipshop.model.User;

/**
 * Dao to work with User object.
 *
 * @author Ivan Holub
 */
public interface UserDao {

    /**
     * Gets user by id.
     *
     * @param userId the id of user
     * @return {@link User} instance
     */
    User getUser(Long userId);

    /**
     * Finds user by login and password.
     *
     * @param login the login
     * @param password the password
     * @return {@link User} instance
     */
    User findUser(String login, String password);

}
